public class Main {
    public static void main(String[] args) {
        // 调用方法求两个整数的和
        int sumInt = sumTwoIntegers(5, 10);
        System.out.println("The sum of two integers is: " + sumInt);

        // 调用方法求三个小数的和
        double sumDouble = sumThreeDoubles(1.5, 2.5, 3.5);
        System.out.println("The sum of three doubles is: " + sumDouble);
    }

    // 方法：求两个整数的和
    public static int sumTwoIntegers(int a, int b) {
        return a + b;
    }

    // 方法：求三个小数的和
    public static double sumThreeDoubles(double c, double d, double e) {
        return c + d + e;
    }
}
